<template>
  <div class="error-page">
      <div class="myimg">
      <div class="error-desc">很抱歉~您所访问的页面不存在</div>
      <div class="error-handle">
          <router-link to="/">
            <el-button type="primary" size="large">返回首页</el-button>
          </router-link>
          <el-button class="error-btn" type="primary" size="large" @click="goBack">返回上一页</el-button>
      </div>
      </div>
 </div>
</template>

<script>
export default {
  methods: {
      goBack(){
          this.$router.go(-1);
      }
  }
}
</script>


<style scoped>
    .error-page{
        display: flex;
        justify-content: center;
        align-items: center;
        flex-direction: column;
        width: 100%;
        height: 100%;
        box-sizing: border-box;
        background: url("../../assets/img/bgerror.png")no-repeat 50% 0px white;
    }
    .error-desc{
        margin-top: 98%;
        font-size: 30px;
        color: #777;

    }
    .error-handle{
        margin-top: 10px;  
    }
    .error-btn{
        margin-left: 160px;
    }
    .el-button{
        font-size: 18px;
    }
</style>
